package com.bawei.mall.user.service.impl;

import com.bawei.mall.user.domain.CusUser;
import com.bawei.mall.user.mapper.UserMapper;
import com.bawei.mall.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public CusUser findByName(String username) {
        CusUser byName = userMapper.findByName(username);
        return byName;
    }
}
